package com.service;

import com.dao.FdyMapper;
import com.pojo.Fdy;

import java.util.List;

public class FdyServiceImpl implements FdyService {
    //service 层调用dao层，所以这里需要去组合dao层
    private FdyMapper fdyMapper;

    public void setFdyMapper(FdyMapper fdyMapper) {
        this.fdyMapper = fdyMapper;
    }


    @Override
    public List<Fdy> queryAllfdy() {
        return fdyMapper.queryAllfdy();
    }

    @Override
    public int deleteByfid(int fid) {
        return fdyMapper.deleteByfid(fid);
    }
    @Override
    public Fdy queryByfid(int fid) {
        return fdyMapper.queryByfid(fid);
    }

    @Override
    public int addfdy(Fdy fdy) {
        return fdyMapper.addfdy(fdy);
    }
    @Override
    public int updatefdy(Fdy fdy) {
        return fdyMapper.updatefdy(fdy);
    }

}
